package com.flyco.modules.stm.enmu;

public enum SystemExceptionEnum  {

    SUCCESSFUL("200", "Successful！"),
    NOT_FOUND("404", "Service not found！"),
    INTERNAL_SERVER_ERROR("500", "Internal server error！"),
    ILLEGAL_PARAM("-1", "Illegal parameters！"),
    INCOMPLETE_PARAM("-2", "Incomplete parameters！"),
    REQUEST_BODY_DECRYPET_ERROR("-3", "请求错误！"),
    RESPONSE_BODY_ENCRYPET_ERROR("-4", "请求错误！"),
    ;

    private String code;
    private String defaultMessage;
    private String originalMessage;
    private String requestUrl;
    private String defaultRedirectUrl = "";
    private Object data;

    private SystemExceptionEnum(String code, String defaultMessage) {
        this.code = code;
        this.defaultMessage = defaultMessage;
    }

    public String getCode() {
        return this.code;
    }

    public String getDefaultMessage() {
        return this.defaultMessage;
    }

    public String getOriginalMessage() {
        return this.originalMessage;
    }

    public void setOriginalMessage(String originalMessage) {
        this.originalMessage = originalMessage;
    }

    public String getRequestUrl() {
        return this.requestUrl;
    }

    public void setRequestUrl(String requestUrl) {
        this.requestUrl = requestUrl;
    }

    public String getDefaultRedirectUrl() {
        return this.defaultRedirectUrl;
    }

    public void setDefaultRedirectUrl(String defaultRedirectUrl) {
        this.defaultRedirectUrl = defaultRedirectUrl;
    }

    public Object getData() {
        return this.data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}